libfsimage: Revert broken parts of portability changes to the build system.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Mar 2008 15:13:55 +0000 (15:13 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Mar 2008 15:13:55 +0000 (15:13 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libfsimage/Makefile
tools/libfsimage/check-libext2fs

index b72e51895a6084efcd1c75d030c61c656a520341..7dd3c4f0fb04f5d754b6c4ade76ef09b98cc4a16 100644 (file)
@@ -2,7 +2,7 @@ XEN_ROOT = ../..
 include $(XEN_ROOT)/tools/Rules.mk
 
 SUBDIRS-y = common ufs reiserfs iso9660 fat
-SUBDIRS-y += $(shell $(SHELL) env CC="$(CC)" ./check-libext2fs)
+SUBDIRS-y += $(shell env CC="$(CC)" ./check-libext2fs)
 
 .PHONY: all clean install
 all clean install: %: subdirs-%
index b6fa7fbacd6492b2ec1c4d2904f08fddeb9f6bf1..3c79fb055357aad0f1fd11fc644046aadcee12db 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 cat >ext2-test.c <<EOF
 #include <ext2fs/ext2fs.h>
@@ -9,9 +9,7 @@ int main()
 }
 EOF
 
-if test -z ${CC}; then CC="gcc"; fi
-${CC} -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
-
+${CC-gcc} -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
 if [ $? = 0 ]; then
        echo ext2fs-lib
 else